home *** CD-ROM | disk | FTP | other *** search
- !
- ! Copyright (c) 1993
- ! by CompuServe Incorporated, Columbus, Ohio
- !
- ! The information in this software is subject to change without
- ! notice and should not be construed as a commitment by CompuServe.
- !
- ! UPDATE:
- ! Starts the download of the Phone database
- !
- !+V
- ! "3.5"
- !-V
-
- show "Connected to Network Phone Database Host";
- WaitTime = 80;
- on cancel goto Return_Cancel;
-
- Connect_Wait:
- wait
- "^[I" goto Send_Response,
- "^E" goto Process_ENQ,
- "^PB" goto Return_Success,
- %mdm_Failure goto CIS_No_Carrier
- until 300;
-
- define %FailureMsg = "Host did not initiate download";
- exit %Failure;
-
-
- Send_OK_Cmd:
- send "dow phone.dms^M";
- WaitTime = 200;
- goto Connect_Wait;
-
- Process_ENQ:
- send "^P++^P0";
- goto Connect_Wait;
-
- Send_Response:
- sendi %ESCIResponse;
- goto Connect_Wait;
-
- CIS_No_Carrier:
- define %FailureMsg = "Modem connection lost";
- exit %Failure;
-
- Return_Success:
- show "Downloading new phone database";
- exit %Success;
-
- Return_Cancel:
- exit %Cancel;
-